package com.nbst.service.impl;

import com.nbst.dao.PeopleMapper;
import com.nbst.model.People;
import com.nbst.service.PeopleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PeopleServiceImpl implements PeopleService {
    @Autowired
    private PeopleMapper mapper;

    @Override
    public People selectByPrimaryKey(String name) {
        return  mapper.selectByPrimaryKey(name);
    }

    @Override
    public void insertUser(People user) {
        mapper.insert(user);
    }

    @Override
    public Integer updateByPrimaryKey(People user) {
        mapper.updateByPrimaryKey(user);
        return null;
    }
}
